﻿using System;
using System.Text.RegularExpressions;

namespace EmbeddedLinkUpdater.Code
{
    public static class StringExtensions
    {
        public static string ReplaceIgnoreCase(this String text, string oldString, string newString)
        {
            var regexText = new Regex(@oldString, RegexOptions.IgnoreCase);
            text = regexText.Replace(@text, @newString);
            return text;
        }
    }
}
